package com.test.service;

import java.util.List;

import com.test.dao.UserInfoDAO;
import com.test.entity.MemberType;
import com.test.entity.Orders;
import com.test.entity.UserInfo;

public class UserInfoService {
	private UserInfoDAO userInfoDAO;

	public UserInfo queryByNP(String userId, String passWord) {
		return userInfoDAO.queryByNP(userId, passWord);
	}

	public void addUserInfo(UserInfo userInfo) {
		userInfoDAO.addUserInfo(userInfo);
	}

	public List<MemberType> queryMember() {
		return userInfoDAO.queryMember();
	}

	public UserInfo querymoney(String name) {
		return userInfoDAO.querymoney(name);
	}

	public List<UserInfo> queryIdMoney(String userid) {
		return userInfoDAO.queryIdMoney(userid);
	}

	public void updateMoney(UserInfo userInfo) {
		userInfoDAO.updateMoney(userInfo);
	}

	public void updateUserInfo(UserInfo userInfo) {
		userInfoDAO.updateUserInfo(userInfo);
	}

	public List<Orders> OrderCount(int id) {
		return userInfoDAO.OrderCount(id);
	}

	public UserInfoDAO getUserInfoDAO() {
		return userInfoDAO;
	}

	public void setUserInfoDAO(UserInfoDAO userInfoDAO) {
		this.userInfoDAO = userInfoDAO;
	}

}
